import { createRouter, createWebHashHistory } from "vue-router";
import routes from "./routes";
import { setUpGuard } from "./guard";

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
setUpGuard(router); // 设置全局守卫

export default router;
